package kr.co.doriclassic.lab10;

import java.util.Scanner;

public class EmployeeTest {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		Employee[] e = new Employee[3];
		
		for(int i=0;i<e.length;i++){
			e[i] = new Employee();
			
			System.out.print("이름 : ");
			e[i].setName(scan.next());
			System.out.print("주소 : ");
			e[i].setAddress(scan.next());
			System.out.print("연봉 : ");
			e[i].setSalary(scan.nextInt());
			System.out.print("전화번호 : ");
			e[i].setPhone(scan.next());
		}
		
		System.out.println("========================");
		
		for(int i=0;i<e.length;i++){
			System.out.println(e[i]);
		}
		
	}
}
